//客户修改
const prefixUrl = '/web/customerEditFlow'
import request from '@/utils/request'

//保存到草稿箱
export function saveDrafts(data, params) {
  return request({
    url: prefixUrl + '/saveDrafts',
    method: 'post',
    content_type: 'json',
    data: data,
    params
  })
}

//保存并开启流程
export function saveAndStartFlow(data, params) {
  return request({
    url: prefixUrl + '/saveAndStartFlow',
    method: 'post',
    content_type: 'json',
    data: data,
    params
  })
}

//保存并开启流程
export function check(data, params) {
  return request({
    url: prefixUrl + '/check',
    method: 'post',
    content_type: 'json',
    data: data,
    params
  })
}

//删除流程
export function remove(params) {
  return request({
    url: prefixUrl + '/remove',
    method: 'post',
    params
  })
}

//彻底删除流程
export function actualDelete(params) {
  return request({
    url: prefixUrl + '/actualDelete',
    method: 'post',
    params
  })
}

//获取跟进信息
export function one(params) {
  return request({
    url: prefixUrl + '/one',
    method: 'get',
    params
  })
}

